package design_pattern.builder;

public class BuilderLogCabin implements Builder {

  private LogCabin house = new LogCabin();

  @Override
  public void buildPart1() {
    house.setPeicesOfWood(300);
    System.out.println("使用木材为300立方。");
  }

  @Override
  public void buildPart2() {
    house.setArea(20);
    System.out.println("建造面积为20平方。");
  }

  @Override
  public House getHouse() {
    return house;
  }

  @Override
  public void buildPart3() {

  }



}
